﻿using Helper;
using Helper.Controls;
using Starehe.ViewModels;
using System;
using System.Security.Permissions;
using System.Windows;
using System.Windows.Media;

namespace Starehe.Views
{

    public sealed partial class MainWindow : CustomWindow
    {
        public static readonly DependencyProperty SourceProperty = DependencyProperty.Register("Source",
            typeof(Uri), typeof(MainWindow),
            new PropertyMetadata(null));
        [ObjectPermissionAttribute(SecurityAction.Demand, RequiredPermissionAccess = UserRoles.Guest)]
        public MainWindow()
        {
            InitializeComponent();
            
            DataContext = new MainWindowVM();
        }


        private void CustomWindow_Closed(object sender, EventArgs e)
        {
            Application.Current.Shutdown();
        }
                
        private void CustomWindow_Loaded(object sender, RoutedEventArgs e)
        {
        }

    }
}

    
